package com.fdd.spring;

import com.fdd.spring.component.UserService;
import com.fdd.spring.ioc.FddSpringApplicationContext;
import com.fdd.spring.ioc.FddSpringConfig;

public class AppMain {
    public static void main(String[] args) {
        FddSpringApplicationContext ioc = new FddSpringApplicationContext(FddSpringConfig.class);
//        Object bean = ioc.getBean("userDao");
//        Object bean2 = ioc.getBean("userDao");
//        System.out.println(bean);
//        System.out.println(bean2);

        //测试依赖注入
        UserService userService = (UserService)ioc.getBean("userService");
        userService.m1();


    }
}
